package cn.tedu.bonfire.front.content.dao.persist.repository;

import cn.tedu.bonfire.front.content.pojo.entity.LikeCollect;
import org.springframework.stereotype.Service;


public interface ILikeCollectRepository {

    /**
     * 点赞/取消点赞后点赞量增加/减少
     * @param articleId
     */
    void updateLikeTimesByArticleId(Long articleId, Integer state);

    void updateCollectTimesByArticleId(Long articleId, Integer state);

    Long switchUpdateOrInsertArticle(Long userId, Long articleId);

    int updateLikeCollection(LikeCollect likeCollect);

    int insert(LikeCollect likeCollect);
}
